ScxV6Object.TemplateObject Method

Returns an ScxV6Object object representing the template object matching this object.

Remarks

Use TemplateObject to obtain the matching template object. If this object is not part of a template instance, TemplateObject returns nothing.

Example:

The following example written in VB.NET gets the matching template object of a point in an instance and writes it's name to the console.

Dim Svr As ScxV6DbClient.ScxV6Server

' Connect to the server

Svr = New ScxV6DbClient.ScxV6Server

Svr.Connect("MAIN", "", "")

Dim Obj As ScxV6DbClient.ScxV6Object

Obj = Svr.FindObject("Group.Instance.Point")

Dim Template As ScxV6DbClient.ScxV6Object

Template = Obj.TemplateObject

Console.WriteLine("Template object of point is {0}", Template.FullName)

' Disconnect

Svr.Disconnect()

This produces the following output:

Template object of point is Group.Point Template.Point


Disclaimer

Geo SCADA Expert 2020